Question 1

When using a script-based experiment to train a model, what is the purpose of the following commands in the script?

diabetes = pd.read_csv('data.csv')

X, y = diabetes[['Feature1','Feature2','Feature3']].values, diabetes['Label'].values

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.30)


Question 2

When using a script-based experiment to train a model, what is the purpose of the following commands in the script?

os.makedirs('outputs', exist_ok=True)

joblib.dump(value=model, filename='outputs/model.pkl')


Question 3

In order to run the script as an experiment, you have to create a ScriptRunConfig file.

What is the purpose of the following commands?

packages = CondaDependencies.create(conda_packages=['scikit-learn','pip'],

pip_packages=['azureml-defaults'])

sklearn_env.python.conda_dependencies = packages


Question 4

Which of the below libraries is used to read the arguments passed to the script?


Question 5

What happens when you register a model with the same name as an existing model?